/* 基本 navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  font-size: 0.95rem;
  white-space: nowrap;
  background-color: #000 !important;
}

/* LOGO */
.navbar-brand {
  font-family: 'Noto Sans TC', sans-serif !important;
  font-size: 28px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5em !important;
  margin-left: 20px !important;
  display: flex;
  align-items: center;
  white-space: nowrap; /* 防止換行 */
  flex-shrink: 0; /* 不縮小 */
}

/* LOGO 圖片 */
.navbar-brand img {
  height: 40px;
  margin-right: 20px;
  flex-shrink: 0;
}

/* 導覽內容容器 */
#templatemo_main_nav > div.container.d-flex.align-items-center.flex-nowrap.justify-content-between {
  width: 100%;
  overflow: visible !important;
  min-height: 64px; /* 固定橫幅高度 */
}

/* 導覽內容第二層容器 */
#templatemo_main_nav > div.container > div.d-flex.flex-column.flex-lg-row.align-items-lg-center.gap-4.ms-auto.text-end {
  flex-direction: row !important; /* 在大螢幕是排成一排 */
  flex-wrap: nowrap !important;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
}

/* 導覽選單 */
#templatemo_main_nav ul.navbar-nav {
  flex-direction: row !important;
  gap: 1.5rem;
  padding-left: 0px;
  margin-bottom: 0;
  white-space: nowrap;
  list-style: none;
  margin-right: 4rem; /* 導覽選單和社群按鈕間距 */
}

/* 下拉選單的父元素要相對定位 */
.navbar-nav li.nav-item.dropdown {
  position: relative;
}

/* 下拉選單容器，初始隱藏 */
.navbar-nav ul.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #000;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  min-width: 160px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
  z-index: 10000;
  /* 移除 opacity 與 visibility */
}

.navbar-nav li.nav-item.dropdown:hover > ul.dropdown-menu {
  display: block;
}


/* 下拉選單裡的連結樣式 */
.navbar-nav ul.dropdown-menu li a.dropdown-item {
  display: block;
  padding: 0.5rem 1.5rem;
  color: rgb(255, 255, 255);
  text-decoration: none;
  white-space: nowrap;
}

/* 下拉選單連結 hover */
.navbar-nav ul.dropdown-menu li a.dropdown-item:hover {
  background-color: rgb(216, 48, 140);
  color: white;
}

/* nav-link 顏色與 hover */
.navbar-nav .nav-link {
  color: white;
  text-decoration: none;
  white-space: nowrap;
}

.navbar-nav .nav-link:hover {
  color: rgb(216, 48, 140) !important;
}

/* 社群按鈕容器 */
#templatemo_main_nav .d-flex.gap-3.justify-content-end {
  justify-content: flex-end;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 2rem;
}

/* 社群按鈕圖示 */
#templatemo_main_nav .d-flex.gap-3.justify-content-end a i {
  color: white;
  transition: color 0.3s ease;
  font-size: 1.5rem;
}

#templatemo_main_nav .d-flex.gap-3.justify-content-end a:hover i {
  color: rgb(216, 48, 140) !important;
}

/* 語言切換按鈕容器 */
#language-switcher {
  font-weight: 600;
  user-select: none;
  color: white;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 語言按鈕 */
#language-switcher .lang-btn {
  color: white;
  cursor: pointer;
  transition: color 0.3s ease;
  text-decoration: none;
  padding: 0;
  margin: 0 0.3rem;
  white-space: nowrap;
  background: none;
  border: none;
}

/* 語言按鈕 hover */
#language-switcher .lang-btn:hover {
  color: rgb(216, 48, 140) !important;
}

/* 選中語言 */
#language-switcher .active-lang {
  color: rgb(216, 48, 140);
  cursor: default;
  text-decoration: none;
}

/* container 調整 */
.container.d-flex.align-items-center {
  max-width: 100% !important;
  padding-left: 1rem;
  padding-right: 1rem;
  position: relative;
  display: flex;
  align-items: center;
}

/* 移除 margin-left 過大 */
.button-margin-left {
  margin-left: 0 !important;
  max-width: none;
}

/* 手機板特化 */
/* 最大寬度 991.98px以下 */
@media (max-width: 991.98px) {
  .navbar-brand {
   font-size: 30px !important;
   letter-spacing: 0.3em !important;
   text-align: left;
 }
  /* 導覽容器保持一排不換行 */
  #templatemo_main_nav > div.container > div.d-flex.flex-column.flex-lg-row.align-items-lg-center.gap-4.ms-auto.text-end {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
  }

  /* 導覽選單隱藏 */
  #templatemo_main_nav ul.navbar-nav {
    display: none !important;
  }

  /* 社群按鈕隱藏 */
  #templatemo_main_nav .d-flex.gap-3.justify-content-end {
    display: none !important;
  }

  /* 語言切換按鈕隱藏 */
  #language-switcher {
    display: none !important;
  }
}

.featured-products {
  padding-top: 0px;
  padding-bottom: 60px;
}

.featured-products .section-title {
  color: rgb(216, 48, 140);
  margin-top: 40px;
  margin-bottom: 80px;
  font-weight: 800 !important;
}

.featured-products .card-img-top-wrapper {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.featured-products .card-img-top-wrapper::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  z-index: 1;
}

.featured-products .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 0;
  border-radius: 8px 8px 0 0;
}

.featured-products .card.h-100 {
  height: 100%;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
}

.featured-products .card-body {
  flex-grow: 0;
  height: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  text-align: center;
  padding: 20px;
}

.featured-products .card-body a.h2 {
  display: block;
  margin-top: 15px;
  margin-bottom: 10px;
  color: #ff6eb7 !important;
}

.featured-products .card-body p.card-text {
  margin-bottom: 20px;
  color: #686868 !important;
}

.featured-products .card-img-top-wrapper {
  overflow: hidden;
}

.featured-products .card:hover .card-img-top {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.featured-products .carousel-item .col-md-4 {
  padding-left: 10px;
  padding-right: 10px;
}

.featured-products .carousel-custom-arrow {
  background-color: #ffffff;
  color: #000;
  border-radius: 50%;
  font-size: 24px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
  border: none;
}

.featured-products .carousel-control-prev,
.featured-products .carousel-control-next {
  width: auto;
  padding: 0;
  background: none;
  border: none;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.featured-products .carousel-control-prev {
  left: -55px;
}

.featured-products .carousel-control-next {
  right: -55px;
}

.featured-products .carousel-control-prev:focus,
.featured-products .carousel-control-next:focus {
  outline: none;
  box-shadow: none;
}

/* 響應式 */
@media (max-width: 991px) {
  .featured-products .carousel-control-prev {
    left: -25px;
  }

  .featured-products .carousel-control-next {
    right: -25px;
  }
}

@media (max-width: 767px) {
  .featured-products .carousel-item .col-md-4 {
    display: none !important;
  }
  .featured-products .carousel-item .col-md-4.active-card {
    display: block !important;
  }
}

/*底部*/
#custom_footer {
    padding-top: 0px;
    padding-bottom: 60px;
    background-color: #111827;
    color: #dcdde1;
}

#custom_footer .container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 1140px;
    margin: 0 auto;
}

#custom_footer h5 {
    margin-bottom: 20px;
    color: white;
    font-weight: 500;
}

#custom_footer ul.custom-footer-link-list li {
    padding-top: 10px;
}

#custom_footer a {
    color: #dcdde1;
    text-decoration: none;
}

#custom_footer a:hover {
    color: rgb(216, 48, 140);
}

#custom_footer .copyright-area {
    display: flex;
    justify-content: center; /* 水平置中 */
    align-items: center;     /* 垂直置中 */
    height: 50px;            /* 高度可自行調整 */
    margin-top: 10px;
}

#custom_footer .border-light {
    border-color: #ffffff !important;
}

#custom_footer .bg-black {
    background-color: #474747 !important;
}

#custom_footer .pt-5 {
    padding-top: 3rem;
}

#custom_footer ul.footer-icons li {
    margin-right: 10px;
}

#custom_footer .col-md-4 {
    padding-bottom: 2rem;
}

#custom_footer p,
#custom_footer li,
#custom_footer a {
    font-size: 16px;
    line-height: 1.6;
}

/*產品右側區塊*/
/* 外層背景與間距 */
.bg-light {
  background-color: #f9f9f9 !important;
}
.container.pb-5 {
  padding-bottom: 3rem !important;
}

/* 左側圖片展示區 */
.col-lg-5.mt-5 {
  margin-top: 3rem !important;
}

/* 大圖卡片 */
.col-lg-5 .card.mb-3 {
  border: none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  margin-top: 140px !important;
}

/* 主產品大圖 */
#product-detail {
  width: 100% !important;
  height: auto !important;
  border-radius: 16px !important;
  object-fit: cover !important;
}

/* 輪播縮圖區 */
.carousel-inner.product-links-wap .carousel-item .col-4 a {
  display: block !important;
  padding: 5px !important;
}
.carousel-inner.product-links-wap .carousel-item .col-4 a img {
  border: 2px solid transparent !important;
  border-radius: 16px !important;
  cursor: pointer !important;
  transition: border-color 0.3s ease-in-out !important;
  width: 100% !important;
  height: auto !important;
}
.carousel-inner.product-links-wap .carousel-item .col-4 a:hover img,
.carousel-inner.product-links-wap .carousel-item .col-4 a.active img {
  border-color: #ffa8e5 !important;
}

/* 輪播左右控制按鈕 */
.col-1.align-self-center a {
  font-size: 1.8rem !important;
  color: #212934 !important;
  transition: color 0.3s ease-in-out !important;
}
.col-1.align-self-center a:hover {
  color: #5a5a5a !important;
}

/* 右側產品資訊區 */
.col-lg-7.mt-5 {
  margin-top: 187px !important;
}

/* 右側卡片 */
.col-lg-7 .card {
  border: none !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08) !important;
  border-radius: 16px !important;
  padding: 20px !important;
  height: 800px !important;
}

/* 產品名稱 */
#product-name {
  font-weight: 700 !important;
  color: #ff499e !important;
  margin-bottom: 15px !important;
}

/* 產品價格 */
#product-price {
  color: #6e6e6e !important;
  font-weight: 600 !important;
  margin-bottom: 20px !important;
}

/* 產品描述 */
#product-description {
  font-size: 24px !important;
  color: #464646 !important;
  line-height: 1.6 !important;
  margin-bottom: 120px !important;
  font-weight: 400 !important;
}

/* 選項標題 */
ul.list-inline li h6 {
  font-weight: 600 !important;
  color: #212934 !important;
}

/* 單一款式文字 */
ul.list-inline li p.text-muted {
  font-style: italic !important;
  color: #464646 !important;
  font-weight: 400px !important;
}

/* 購買按鈕 */
.btn.btn-success.btn-lg {
  background-color: #ff97d4 !important;
  border-color: #59ab6e00 !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  padding: 12px 0 !important;
  transition: background-color 0.3s ease-in-out !important;
  margin-top: 240px !important;
}
.btn.btn-success.btn-lg:hover,
.btn.btn-success.btn-lg:focus {
  background-color: #ff6291 !important;
  border-color: #3d874700 !important;
  box-shadow: 0 0 10px #47995500 !important;
  outline: none !important;
  color: #fff !important;
}
@media (max-width: 991.98px) {
  /* 購買按鈕 */
.btn.btn-success.btn-lg {
  background-color: #ff97d4 !important;
  border-color: #59ab6e00 !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  padding: 12px 0 !important;
  transition: background-color 0.3s ease-in-out !important;
  margin-top: 180px !important;
}
}